package router

import (
	"github.com/gin-gonic/gin"
	"web_end/api"
)

func InitIterationRouter(router *gin.RouterGroup) {
	iterationGroup := router.Group("iteration")
	{
		iterationGroup.POST("/create", api.CreateIteration)
		iterationGroup.GET("/item/:id", api.GetIterationById)
		iterationGroup.GET("/list/:id", api.GetIterationListByProjectId)
		iterationGroup.PUT("/item", api.UpdateIteration)
		iterationGroup.DELETE("/item", api.DeleteIteration)
	}
}
